﻿using ZilLion.TaskManager.Entity.Entity;
using ZilLion.TaskManager.Entity.Response;

namespace ZilLion.TaskManager.Repository
{
    public interface ITaskStateRespository
    {
        TaskStateResponse GetTaskStateById(string taskid, string nodeid = null);
        TaskStateResponse GetAllTaskState(string nodeid);

        void UpdateTaskState(TaskStateEntity stateEntity);
        void ReportTaskExcuted(TaskStateEntity stateEntity);
        void ReportTaskError(string taskid, string nodeid);
    }
}